package org.objective.base;

import org.common.service.ServiceRegister;

/**
 *
 * @author gus
 */
public class StorageFactory
{
    private static Storage defaultStorage = null;

    public synchronized static Storage getDefaultStorage(ServiceRegister register) throws Exception
    {
        if (defaultStorage == null)
        {
            defaultStorage = new DefaultStorage(register);
        }
        return defaultStorage;
    }
}
